#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    ifstream in("getwords.cpp");
    vector<string> words;
    string w;
    while ((in >> w) != NULL)
    {
        words.push_back(w);
    }
    for (int i = 0; i < words.size(); i++)
    {
        cout << words[i] << endl;
    }
    return 0;
}
